    package com.example.springbootlearn.entity;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author caiji Mr. Li
 * @date 2019/10/31 11:08
 */
public class BeanFactoryTest {
    public static void main(String[] args) {

        AnnotationConfigApplicationContext context =new AnnotationConfigApplicationContext(MyTestBean.class);
        MyTestBean myTestBean = context.getBean("myTestBean", MyTestBean.class);
        System.out.println(myTestBean.getTestStr());
    }
}
